package com.onlyMe.world
{
	import com.onlyMe.world.objects.IsleObject;
	
	import flash.events.Event;

	public final class IsleEvent extends Event
	{
		public static const OBJECT_ADDED:String = 'ieObjectAdded';
		public static const OBJECT_REMOVED:String = 'ieRemoved';
		public static const READY:String = 'ieIsleReady';
		
		private var _object:IsleObject;
		
		public function IsleEvent(type:String, object:IsleObject=null)
		{
			super(type);
			
			_object = object;
		}
		
		public function get object():IsleObject
		{
			return _object;
		}
		
		override public function clone():Event
		{
			return new IsleEvent(type, object);
		}
		
	}
}
